﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Base
{
    /// <summary>
    /// 维修工单主表
    /// </summary>
    [Table("Base_RepairOrder")]
    public partial class Base_RepairOrder
    {

        /// <summary>
        /// 设备维修id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 维修申请id
        /// </summary>
        public String Parentid { get; set; }

        /// <summary>
        /// 派工人id
        /// </summary>
        public String UserId { get; set; }

        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? CompletionTime { get; set; }

        /// <summary>
        /// 故障类别(字典值)
        /// </summary>
        public String Type { get; set; }

        /// <summary>
        /// 维修费用
        /// </summary>
        public Double? MaintenancePrice { get; set; }

        /// <summary>
        /// 故障原因
        /// </summary>
        public String FaultAnalysis { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean Deleted { get; set; }

        /// <summary>
        /// 维修级别
        /// </summary>
        public String MaintenanceLevel { get; set; }

        /// <summary>
        /// 设备id
        /// </summary>
        public String DeviceId { get; set; }

    }
}